import {NgModule} from '@angular/core';
/**
 * 开发component需要的依赖
 */
import {BaseSharedModule} from '../base-shared';
import {PipesModule} from '../pipes/pipes.module';
/**
 * 所有组件
 */
import {CameraComponent} from './camera/camera.component';
import {ShareComponent} from './share/share.component';
import {WangEditorComponent} from './wang-editor/wang-editor.component';
import {DeteleComponent} from './delete/detele.component';
import {FlowChartComponent} from './flow-chart/flow-chart.component';
import {SelectRoleComponent} from './select-role/select-role.component';
import {CircuitComponent} from './circuit/circuit.component';
import {KylinModalComponent} from './kylin-modal/kylin-modal.component';
import {SideMenuComponent} from './side-menu/side-menu.component';
import {IconComponent} from './icon/icon.component';

import {ImagesModule} from './images/images.module';
import {ListPageModule} from './list-page/list-page.module';
import {AfbmModule} from '../afbm/afbm.module';
import {DynamicFormModule} from './dynamic-form/dynamic-form.module';
import {UploadModule} from './upload/upload.module';
import {VerificationCodeModule} from './verification-code/verification-code.module';

// todo 所有组件都应该使用module隔离,这样才可以开启tree shook
const components = [
    ShareComponent, WangEditorComponent, CameraComponent,
    DeteleComponent, FlowChartComponent, SelectRoleComponent,
    KylinModalComponent, CircuitComponent, SideMenuComponent,
    IconComponent
];

@NgModule({
    declarations: [...components],
    imports: [
        BaseSharedModule,
        PipesModule,
        ImagesModule,
        ListPageModule,
        AfbmModule,
        DynamicFormModule,
        UploadModule,
        VerificationCodeModule
    ],
    providers: [],
    exports: [...components, DynamicFormModule, ImagesModule, ListPageModule, AfbmModule, UploadModule, VerificationCodeModule]
})
export class ComponentsModule {
}
